package com.nanjia.boot.product.sku.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.nanjia.boot.common.base.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * 商品库存单元(SKU)实体对象
 *
 * @author 周洋
 * @since 2025-07-10 14:15
 */
@Getter
@Setter
@TableName("product_sku")
public class ProductSku extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 所属SPU
     */
    private Long spuId;
    /**
     * SKU编码
     */
    private String skuCode;
    /**
     * 销售价格
     */
    private BigDecimal price;

    /**
     * 条形码
     */
    private String barCode;

    /**
     * SKU主图
     */
    private String mainImage;
    /**
     * SKU详情图
     */
    private String detailImages;
    /**
     * 状态
     */
    private Integer status;


    private String skuMeasurement;

    /**
     * 数量倍率
     */
    private Long skuRatio;
}
